﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Security;
using Eacademy.Domain.Abstractions;
using Eacademy.Domain.Models;
using Eacademy.Library.Membership;
using Eacademy.Library.Actions;

namespace Eacademy.Areas.Mentor.Controllers
{
    [ProfileControllerFilter]
    public class HomeController : Controller
    {
        //
        // GET: /Mentor/Home/
        private IMentorRepository _mentorRepository;

        public HomeController(IMentorRepository mentorRepository)
        {
            _mentorRepository = mentorRepository;
        }

        private static CustomMembershipProvider Provider
        {
            get
            {
                return (CustomMembershipProvider)Membership.Provider;
            }
        }

        public ActionResult Index()
        {

            return Redirect("/mentor");
        }

    }
}
